/**
 * 功能描述: 基础switch变量抽取
 * @author 赵常畅
 * @date 2022/9/21 14:00
 * @version 1.0
 */

@import "src/style/index";
//基础switch
$--switch-min-width: 44px;
$--switch-height: 22px;
$--switch-position-offset: -30%;
$--switch-position-offset-zero: 0;
$--switch-font-color: $font-color-base;
$--switch-font-size: $font-size-base;
$--switch-line-height: 22px;
$--switch-background-color: rgba(0, 0, 0, 0.25);
$--switch-border: 0;
$--switch-border-radius: 100px;
$--switch-focus-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
$--switch-hover-box-shadow: none;
//switch checked常量
$--switch-checked-background-color: $color-primary;
$--switch-checked-focus-box-shadow: 0 0 0 2px #e6f7ff;
$--switch-inner-font-color: $color-white;
$--switch-inner-font-size: 12px;
//switch handle 常量
$--switch-handle-before-background-color: $color-white;
$--switch-handle-before-border-radius: 9px;
$--switch-handle-before-box-shadow: 0 2px 4px 0 rgba(0, 35, 11, 0.2);

// switch small 常量
$--switch-small-min-width: 28px;
$--switch-small-min-height: 16px;
$--switch-small-line-height: 16px;
$--switch-small-inner-font-size: 12px;

// switch transition
$--switch-transition:  all 0.2s;
$--switch-inner-transition: margin 0.2s;
$--switch-handle-transition: all 0.2s ease-in-out;
$--switch-handle-before-transition: all 0.2s ease-in-out;